<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">白名单三方公司</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <input type="text" class="form-control" placeholder="请输入关键字：简称/拼音缩写/全程(至少输入两个字符)" ng-model="searchMap.keyWord" style="width:400px;">
    </div> 
    <button type="submit" class="btn btn-primary">查询</button>
  </form>

  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="30"></th>
        <!--<th width="30">ID</th>-->
        <th width="130">添加时间</th>
        <th width="200">公司简称</th>
        <th width="200">拼音缩写</th>
        <th>三方公司全称</th>
        <th width="150">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="c in list">
        <td>{{$index + 1}}</td>
       <!--<td>{{c.id}}</td>-->
       <td>{{c.createDate | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
       <td>{{c.tpcShortName}}</td>
       <td>{{c.tpcAbbrLetter}}</td>
       <td>{{c.tpcFullName}}</td>
       <td>
         <button class="btn btn-default" ng-click="sfDelete(c.id)">删除</button>
         <button class="btn btn-default" ng-click="toUpdate(c.id)">编辑</button>
       </td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>

<div class="layer-box" ng-show="isShowUpdateLayer">
  <div class="layer-bg"></div>
  <div class="layer-con " style="padding:10px 20px;">
    <span class="icons-close" title="关闭" ng-click="isShowUpdateLayer = false;">X</span>
    <div class="con-wrap" style="text-align: left;">
      
      <div class="form-group">
        <label for="exampleInputEmail1">公司全称</label>
        <input type="text" class="form-control" placeholder="公司全称" ng-model="sf.tpcFullName">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1">公司简称</label>
        <input type="text" class="form-control" placeholder="公司简称" ng-model="sf.tpcShortName">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1">拼音缩写</label>
        <input type="text" class="form-control" placeholder="拼音缩写" ng-model="sf.tpcAbbrLetter" maxlength="2">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1" style="display: block">公司性质</label>
        <label ng-repeat="e in dictMap.tpcComTypeModel" style="margin:5px">
          <input type="checkbox" ng-model="tpcCommoyType[e.value]" value="{{e.value}}">
          {{e.text}}
        </label>
      </div>
      <button type="submit" class="btn btn-default" ng-click="sfUpdate()">修改</button>
      <button type="submit" class="btn btn-default" ng-click="isShowUpdateLayer = false;">取消</button>
    </div>
  </div>
</div>
